package com.ywq.wechatordersys.repository;

import com.ywq.wechatordersys.data.OrderMaster;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface OrderMasterRepository extends JpaRepository<OrderMaster, String> {

    /**
     * 分页返回订单列表
     **/
    Page<OrderMaster> findByBuyerOpenid(String openid, Pageable pageable);


}
